<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<%=basePath%>">
<title>增加用户</title>
<link href="css/css-main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="js/cardInterface.js"></script>
<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/validation/validationEngine.jquery.css" type="text/css"/>
<script src="js/validation/languages/jquery.validationEngine-zh_CN.js" ></script>
<script src="js/validation/jquery.validationEngine.js" ></script>
<script>
		jQuery(document).ready(function(){
			// binds form submission and fields to the validation engine
			jQuery("#formId").validationEngine({
			promptPosition: "centerRight"});
 		});
</script>
</head>
<body>
<!-- <object classid="clsid:9ED6510F-E648-40b0-B549-537227261E19" id="myact"></object> -->
<div class="main-con">
  <!--//导航位置层-->
  
      <div class="main-bar"><span class="bar-position">当前位置：<a href="#">会员管理</a> &gt;&gt; 会员信息管理 &gt;&gt; 新增用户</span></div>
    <div class="cont_right_cont">
      <fieldset>
      <legend>新增用户</legend>
      <div>
      <form action="" method="post" id="formId">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="23%" align="right">人脸通卡号：</td>
            <td width="38%"><span style="padding:0px">
              <input name="customer.cardSn" type="text" class="data-searchtxt-runtime validate[required,maxSize[10] custom[onlyNumberSp]] text-input" id="cardSn" size="40" />
            </span>
            </td>
            <td width="39%" rowspan="5" align="center"><img src="" alt="" name="照片" width="100" height="100" id="pathzp"></td>
            </tr>
           <tr>
            <td align="right">一卡通卡号：</td>
            <td><span style="padding:0px">
              <input name="customer.cardNo" type="text" class="data-searchtxt-runtime validate[required,maxSize[6] custom[onlyNumberSp]] text-input" id="cardNo" size="40" />
            </span></td>
          </tr>
          <tr>
            <td align="right">用户名：</td>
            <td><span style="padding:0px">
              <input name="customer.custName" type="text" class="data-searchtxt-runtime validate[required,maxSize[20] custom[chAndEnChar]] text-input" id="custName" size="40" />
            </span></td>
            </tr>
          <tr>
            <td align="right">性别：</td>
            <td><span style="padding:0px">
              <input name="customer.sex" type="radio" class="data-searchtxt-runtime" id="sex" size="40" value="1" checked/>男&nbsp;&nbsp;&nbsp;&nbsp;
              <input name="customer.sex" type="radio" class="data-searchtxt-runtime" id="sex" size="40" value="2"/>女
            </span></td>
            </tr>
          <tr>
            <td align="right">籍贯：</td>
            <td><span style="padding:0px">
              <input name="customer.nationality" type="text" class="data-searchtxt-runtime validate[required,custom[chChar]] text-input" id="nationality" size="40" />
            </span></td>
            </tr>
              <tr>
            <td align="right">生日：</td>
            <td><span style="padding:0px">
              <input name="customer.birthday" type="text" class="data-searchtxt-time validate[required]" id="birthday" size="40" value=""  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
            </span>
            </td>
            <td align="center">
            <input type="hidden" class="txt" name="customer.photoPath" size="30" id="photo" />
			<iframe id="d_file" frameborder="0" src="js/upload/postfile.html" width="260"  height="22" scrolling="no"></iframe>
            </td>
            </tr>
            <tr>
            <td align="right">会员级别：</td>
            <td>
            <select name="customer.clientLevelId.clientLevelID" class="data-searchtxt-select" id="clientLevelId" style="width:150px">
            <s:iterator value="results" status="s">
              <option value="<s:property value="results[#s.index].clientLevelID" />"><s:property value="results[#s.index].clientLevelName" /></option>
             </s:iterator>
            </select>
            </td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td align="right">状态：</td>
            <td><select name="customer.status" class="data-searchtxt-select" id="status" style="width:150px">
              <option value="0" selected>启用</option>
              <option value="1">停用</option>
            </select></td>
            <td align="center">&nbsp;</td>
          </tr>
          <tr>
            <td align="right">证件类型：</td>
            <td><select name="customer.typeID" class="data-searchtxt-select" id="typeID" style="width:150px">
              <option value="1">身份证</option>
              <option value="2">军人证</option>
              <option value="3">其他证件</option>
            </select></td>
            <td width="39%" align="center">&nbsp;</td>
          </tr>
          <tr>
            <td align="right">证件号：</td>
            <td><span style="padding:0px">
              <input name="customer.numberID" type="text" class="data-searchtxt-runtime validate[required,true]"id="numberID" size="40" />
            </span></td>
            <td width="54%">&nbsp;</td>
          </tr>
          <tr>
            <td align="right">职业：</td>
            <td><span style="padding:0px">
              <input name="customer.profession" type="text" class="data-searchtxt-runtime"id="profession" size="40" />
            </span></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td align="right">联系电话：</td>
            <td><span style="padding:0px">
              <input name="customer.tel" type="text" class="data-searchtxt-runtime validate[required,maxSize[15] custom[phone]] text-input" id="tel" size="40" />
            </span></td>
            <td>&nbsp;</td>
          </tr>
          <!--  
          <tr>
            <td align="right">个人爱好：</td>
            <td><span style="padding:0px">
              <input name="customer.personalHobby" type="text" class="data-searchtxt-runtime"id="textfield8" size="40" />
            </span></td>
            <td>&nbsp;</td>
          </tr>
            <tr>
            <td align="right">日期：</td>
            <td><span style="padding:0px">
              <input name="customer.registrationDate" type="text" class="data-searchtxt-time" id="textfield6" size="40" value="" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
            </span>
            </td>
            </tr>
            -->
        </table>
        <div>
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              
              <td width="457" align="right" valign="middle">
              <input name="button" type="submit" class="btn-Yes" id="button" onclick="doAdd();" value="确定"></td>
              <td width="501" align="left" valign="middle">
              <input name="button1" type="button" class="btn-Yes" id="button1" onclick="javascript:history.back();" value="取  消"></td>
            </tr>
          </table>
        </div>
        </form>
      </div>
      </fieldset>
    </div>
</div>
</body>
</html>
